package com.ml.mall.bean.req.country;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@ApiModel(value = "州名添加类")
@Data
@Accessors(chain = true)
public class CountryStatesAddDto {
    @ApiModelProperty(value = "州名")
    @NotBlank(message = "州名不能为空")
    private String statesName;

    @ApiModelProperty(value = "州名对应的国家id")
    @NotNull(message = "国家Id不能为空")
    private Long countryId;
}
